<?php

use think\Route;

$afterBehavior = [
//    '\app\index\behavior\ApiAuth',
];

Route::group('index', function () use ($afterBehavior) {
    //一些带有特殊参数的路由写到这里
    Route::rule([
        'Index/registered'  => [
            'index/Index/registered',
            ['method' => 'post']
        ],
        'Index/registeredSendMobileCode'  => [
            'index/Index/registeredSendMobileCode',
            ['method' => 'post']
        ],
        'Index/getAgentInfo'  => [
            'index/Index/getAgentInfo',
            ['method' => 'post']
        ],
        'Index/webRegister'  => [
            'index/Index/webRegister',
            ['method' => 'get']
        ],
        'Index/download'  => [
            'index/Index/download',
            ['method' => 'get']
        ],
        'Policy/privacy'  => [
            'index/Policy/privacy',
            ['method' => 'get']
        ],
        'Index/getCaptcha'  => [
            'index/Index/getCaptcha',
            ['method' => 'get']
        ],
        'Policy/useragree'  => [
            'index/Policy/useragree',
            ['method' => 'get']
        ],
        'Policy/law'  => [
            'index/Policy/law',
            ['method' => 'get']
        ],
    ]);

});
